package cn.hicard.risk.service.sys.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.hicard.core.Page;
import cn.hicard.core.PageResult;
import cn.hicard.core.Where;
import cn.hicard.risk.dao.sys.SysLogDao;
import cn.hicard.risk.entity.SysOperateLog;
import cn.hicard.risk.service.sys.SysLogService;

@Service
public class SysLogServiceImpl implements SysLogService {
	
	@Autowired
	private SysLogDao sysLogDao;

	@Override
	public void save(SysOperateLog log) throws Exception {
		sysLogDao.save(log);
	}

	@Override
	public PageResult<SysOperateLog> search(Where where, Page page)
			throws Exception {
		return sysLogDao.search(where, page);
	}

}
